Add support for galleries