previous gallery header logic/styles