How to make infinite query tiles

How would I go about making these individual tiles to bet 4 columns by x amount of rows (infinite)?

After the 4th tile the 5th one is getting lost at the moment.