user can't click next image in gallery if there is no next