Credits: SM
List<Slide>  auxList = carousel.getSlides();
for(int i=0; i<auxList.size(); i++){
   if(carousel.getSlides().get(i).getActiveSlide())
      auxList.add(carousel.getSlides().get(i));
}