resolved carousel issues by narrowing the remove active class