make slideshow work, still some improvements to be done