how to use the gallery