click handler added for view slideshow