hide next prev button when non-group image is clicked at first