externalize gallery, add rich text dependency to other blocks