slideshow js updated with changed methods