You just append new <figure> elements to the <main> in the example and it will automatically put them in the appropriate column.
The other posters have good answers. One thing to consider for a smooth interaction would be to eagerly load the next x elements before they scroll into view.