Add onclick event for slideshow plus code to support timer.