Refactored slider on home index