Make slideshow functional for all images