Perspective Shift components if one is invisible

I have a total of 10 tanks on a Data Type. For each instance of that data type anywhere between 3 and 10 tanks will be in use. Is there a way in Perspective to Shift all the tanks to the left if a tank in the middle is missing? In my image instead of showing the blank space I’d like to shift those 3 tanks to be together. I can use a dataset with a flex repeater but those tend to take a while to load when I use them.

I was attempting to use the Flex Container in my example.

Well I found the solution already for this, sorry about that. I just have to write to the display property instead of the visible property.