add delete on gallery class