GTA: Gated Toxicity Avoidance for LM Performance Preservation