Kirupa xml photo gallery with thumbs using grid

Does anyone know how to convert Kirupa xml photo gallery - adding thumbnails from scrolling to a grid as mentioned on the first page of the tutorial? I’m a flash novice. Got the photogallery with scroller to work great but need to have thumbs in grid format.

Link: http://www.kirupa.com/developer/mx2004/thumbnails.htm