Ion-slides slides.length

I have 3 images in my ion-slides when i first starts getActiveIndex() == 1, and im doing autoplay with my slides and when it reach the end it makes slide 1 slide 4.
The problem is that I have some random quotes that is inserted and it works well the first loop but on the second loop its empty on the first slide.