refactored to better handle future slide shows