Left-click (select) the unit.

Then right-click, as if you were deploying them in a certain area or teling them to attack, but hold the button. The drag to the right and you should be able to set how deep you want your unit. This works for all units, and is also good for making sure your formation has no holes (you can close the gap).

Hope I helped.

P.S. Welcome to the Guild