Why did Elbridge Gerry of Massachusetts redraw the congressional districts in his state?

Why did Elbridge Gerry of Massachusetts redraw the congressional districts in his state?