gallery linking update