Gallery expand link fix