Refactoring slider module
Refactoring slider module