Actually internally, within the US, the slave trade was still legal. It was the Atlantic Slave trade that was outlawed in 1808. Internal slave trading existing up until the Civil War.
The film opens 20 years before the 1860 presidential election, 1840, and states that the slave trade was, "perfectly legal." Trading in slaves from Africa was outlawed in the United States in 1808.