fixed getSlides function in api again