Changes to gallery attachment list view to work when not displayed in the context of a modal, but instead in a content item