chnage onArrowClick method in GalleryActivity