Gerrymandering is deliberately drawing election district lines to favor or oppose any party or candidate.
It is not gerrymandering when there is no intent to affect the outcome of an election: