How collection with pictures look on design view and published view looks different

When I put an image in the collection item and remove the padding between the items, how it’s viewed on the designer and how it’s viewed after it’s published looks different. On the designer view everything looks fine. All the images are stacked against each other. But when I publish it, there are unfilled spaces.

This is the designer view


This is the published view.


Here is my site Read-Only: LINK