There was a gap between the mattresses. The foam is now on the other side of the cot (against the rails) since she can climb over it anyway.