gallery issue

Hello when i add more than 4 images in the gallery event, there is empty space in the gallery.how can i fix it?