fixes gallery not calculating nav height correctly