List grid layout

Hi everyone I’m trying to implement List grid layout like this(Which is implemented by using ng-repeat)

But my list has more than 50000 items I can’t go with ng-repeat
hence I’m trying to implement using collection repeat like this

but the problem is I’m unable to change item-width dynamically
any help is appreciated.

Thanks in advance!