updated ng-repeat to prevent grid growth