Beginner -xml - XML Portfolio Question

I wanted to modify the XML Portfolio Tutorial to be able to create a grid of images with the thumbnails. I’m not sure how to control the x and y coordinates of the thumbnail images using the method shown in the tutorial. I appreciate your help!