Improve refreshCarousel event for dynamic insertion of slides