Photogallery detail window changes caption with image sliding