Fill this out and click Generate Script. Paste the result into your brands object.
These become booleans under features.
Leave a field empty to output null (row hidden).
Fill as many rows as you want; empty rows are ignored.
First 4 become thumbnails; the rest feed the X+ count. Leave unused rows blank.
This outputs a single brand block. Paste it inside your existing brands: { ... } object.