We didn't find any gap problems with the mattress at all.  We're extremely happy with this bed and the mattresses we bought with it.