remove duplicated link in the gallery