refactor slide