refactor slide rotation to use one codebase