gallery remove/add favorite functionality