Gallery Main Page Template Fix