If on account of the first row being long those who are standing at either end of the row do not see the imam, they can still follow. Furthermore, if on account of any of the other rows being long those standing at either end of it do not see the row in front of them, they can also follow.