fix slide-{index} class and add getPreviousActiveSlide method