Photo gallery

I made a photo gallery with thumbnails where i would click on the thumbnail and the image would appear rotating in. The thumbnails (13 of them) are buttons which call for the image by linkage. However, I have problems due to this with the preloader.

Is there any other way to create the photo gallery… cause this is the only way the client wants.

Thanks.