Refactor slide speed