streamlined visitGallery for mobile viewing, cleaned/consolidated code