updated content-attachment page to work with galleries