Complex sentence: When roosting, they sit side-by-side in close contact with each other, with the outmost bird rarely content to remain at this position and will constantly wedge itself into the center.
Split into simpler sentences: When roosting, they sit side-by-side in close contact with each other. The outermost bird is rarely content to remain at this position and will constantly wedge itself towards the center.