Removing single ion-item on a ion-list

I’m struggling with ion-list modification during runtime. I like to hide several list items depending on item states.
I tried to put ng-hide or style=“display:none” attributes to hide list item. After applying these attributes items will made invisible but there are empty spaces.

How can I show/hide elements depending on their states without having empty spaces?