Made slideshow presentation mode more reusable.