updating slideshow script (WIP)