Added the new class names based on the visibility of slides in the slide container