Refactored the front page slider