Modified gallery for horizontal scrolling of thumbnails