NEW COLUMN in XML photo gallery

I need to know how to create a new column once the thumbnails get to a certain point. Does anybody know how to do this.

this is based off of the tutorial for XML Photo Gallery w/ thumbnails.