Slide show parameterizing. Refactoring.