How did the Civil War impact slavery in the rebelibg states?

When the Civil War started in 1861, many slaves had already moved to the north. Of the 34 states that were in the United States, 19 of them were free states, the other 15, were slave states.