How did the cotton gin affect slavery?

How did the cotton gin affect slavery?