new R + support for subgalleries