That is fountain foam. The panels could not be pushed together without gaps in some cases. I think it would be the same without foam, water gets in there anyway.
They are glued across the entire surface, nothing else helps imo. The capillary effect draws the water everywhere. There will always be small gaps between the panels.