gallery widget display the photo the user clicks firstly