adjusted slideshow so more cpu efficient