i think to do this youd need to use cascading style sheets...

you could set an element to "float: left" this way, when you put each album into a div like this, they would automatically fill up in however many columns it took to fill the page, so if you set the width to 50% it would then automatically put two onto each row.

hope this helps