add click listener for slideshow