gerrymander

an arbitrary arrangement of the political divisions of an electorate, etc., made so as to give one party an unfair advantage in elections.