# Ng-repeat count gets squared in ion-slide-page

**URL:** <https://forum.ionicframework.com/t/ng-repeat-count-gets-squared-in-ion-slide-page/70835>\
**Category:** ionic-v1\
**Created:** [November 21, 2016, 10:42am UTC](https://forum.ionicframework.com/t/ng-repeat-count-gets-squared-in-ion-slide-page/70835 "2016-11-21T10:42:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![perBelling](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@perBelling](https://forum.ionicframework.com/u/perBelling)\
**Post date:** [November 21, 2016, 10:42am UTC](https://forum.ionicframework.com/t/ng-repeat-count-gets-squared-in-ion-slide-page/70835/1 "2016-11-21T10:42:51Z")

</div>

Hi. I have searched around in different spots and I have not yet found out whether this is working as designed or a “real” bug. I have found the codepen [http://codepen.io/elaval/pen/XXpoLy](http://codepen.io/elaval/pen/XXpoLy)  
(it is not mine) which clearly demonstrates the problem: When looping around in an slide array where the contents of a slide contains ng-repeat’ed elements, the number of elements gets squared.  
That is: There are 3 slides (index 0,1,2) and each contain 3 elements. But if you slide from index 0 to 2 or slide from 2 to 0 there is 9 elements on the rendered page.  
Is there any solution to this problem?
