for merge
for merge2
added more styles for the slides, added new features for updating activeSlide