I’m not entirely sure what point you’re trying to make. The invention of the cotton gin increased the use of slaves; it didn’t decrease it.
https://freedomcenter.org/voice/eli-whitney-cotton-gin/