May I ask about people forming a line next to the imam, standing on both of his sides, when the place is too small to accommodate everyone. Should they not stand only to his right?
If the place is too small to accommodate all worshippers, they stand as best as they can, even if it means that some of them will have to do their prostration on the back of the people in front of them.
If it is necessary to form a row next to the imam, the imam should be in the middle, as with every row in the congregation. Every row starts behind the imam, who stands in the middle, and the worshippers stand to his two sides.