If you've ever had a potted plant that seemed to bend and reach towards a sunny window or light, you know you should probably move it a little closer. Getting the plant to grow evenly though, once it's already started to bend, is trickier without hurting it. Here's how. Image from tseenster.
If you have a plant that starts growing towards sunlight, also called etiolation, slowly move your plant to more and more direct sunlight, and rotate the plant to even out the direction it grows. If you move it too quickly from shade to sun, you can scorch or sunburn a plant that's not ready for that much sudden light, so make the change gradual. Then, even out the growth of the plant by turning the pot a little every few weeks so that the plant has even exposure on all sides to sunlight.
Cactus and Succulent Care for Beginners [Cactus and Succulent Society of San Jose]