Prevent duplication on homepage gallery