If you can provide some code, it seems to be a small bit of code. Function - Telling the pic to display this thumb image this size (maybe 200x200) - then telling the pic to link to the page to display the image plus in what resolution Maybe 950x600, then adding to that page some arrows that link to next page and next image. , then adding the title text and then detailed text of image, also being mobile friendly. It seems the photo placement and the layout for just placing images should be and can be more robust.
Photo - Grid x what 1-2-3-4-5-= not section only, the image layout
Display Style - Custom
Image Link- Custom
Image or Grid Spacing - Custom
Link Image- custom - If mage is clicked on
Thumb - Image link to media file
Cover Main thumb Image could be different Image - Choose Cover image
Hover Thumb - Chose a roll over Thumb url link or invert the image on rollover