creating a Thumbnail Gallery