refactor slide navigation arrows code