adds the beginnings of a gallery directive