In the Academic Art of Riding, all side movements are first taught to the horse in hand.
This teaches the horse to move in side movements and find its balance without the additional weight of the rider.
Later on, the horse will find it easier to learn and execute the same exercise under the rider.
At first, a few steps are enough.
When the horse gradually becomes stronger a whole long side of the riding arena can be done in shoulder in.