X and y controls with XML

I am using XML to build a picture gallery with thumbnails, and I am trying to arrange them. and I understand how to control the X and Y positioning using the “declare instances” part of scripting.

Can anyone help?