add slideshow function, troubleshoot