change the col separating the images to col-1of3-gallery.
separate all the image into the col1of3-gallery div.