Makes gallery details closeable