update the active class correctly on hero slider on homepage