Refactoring slide navigation and added touch events