A cotangent bundle slice theorem