work in progress refactoring slide switching