set up for the creating the thumbnail gallery