Question :

How are gaps filled during congregational prayer?

The Answer :

A praying person is allowed to take two steps in order to fill the gap in the row ahead. If the distance was long and requires much movement, then it is impermissible for one to move to fill it because much consecutive movement(three movements) during prayer invalidates it.