gallery navigation header fix