preparing gallery