Men generally pray together and women together. If they must be in the same room, then men are in front and women behind, usually with a divider of some sort in between them. In their separate lines, they stand as close as possible to one another, shoulders touching, feet touching, so that the devil can’t get in between them.