Photogallery Thumbnails of different widths

Today I used the tutorial on building a photogallery using XML and then added the thumbnails but I have seemed to run into a slight problem I am hoping you can help out with. all my thumbnails are of the same height but they are different in width and I was wonder how I can get around this issue so that they all display the same distance appart from one another.

thanks alot for your time

Sincerely EDS Designs

function thumbnails_fn(k) {

thumbnail_mc.createEmptyMovieClip(“t”+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {

//target_mc._x = hit_left._x+(eval(“thumbnail_mc.t”+k)._width+5)*k;
target_mc._x = start + size;
size = hit_left._x+(target_mc._width+5) + target_mc._x;

target_mc.pictureValue = k;
target_mc.onRelease = function() {

p = this.pictureValue-1;
nextImage();

};

search the forums this comes up alot…