Loading thumbs with different widths and distribuiting them on the scene

I´m loading several thumbs of a XML gallery in sequence, one after another, in the _x coordinates.

The problem is that the thumbs do no have all the same _width, so they create some empty spaces between them if I set a distance.

how can I set a distance of 5 pixels between the thumbs, no mather the width they have?