Help with Photo Gallery using XML and Flash!

Hey guys…I need help with the photo gallery tutorial using XML and Flash(here is the link http://www.kirupa.com/developer/mx2004/thumbnails.htm)

At the moment the thumbnails are placed in horizontal way but I want to implement the thumbnails in a vertical way like a grid way. I was cracking my head the whole night and just couldn’t make it work…was fiddling with the x-y coordinates of the thumbnail_mc and the hit left and hit right clips…just hoping some actionscript master will provide some light on me…:q: