convert a section of the gallery