To ensure even growth and prevent the plants from leaning towards the light source, rotate the containers every few days. This will help the herbs and spices receive uniform sunlight exposure and prevent them from becoming lopsided.