added group functionality and fixed getSlides