refactor slider on home page