Made slideshow work on touch devices