More optimization and documentation for slideshow