Slaves in states that did not secede, Maryland, Kentucky, Delaware, Missouri, were not freed until passage of the 13th Amendment after Lincoln's death. Not entirely true. Slaves in Missouri and Maryland were freed when those states amended their Constitutions prior to January 1865. Slavery was ended in the District of Columbia during the war, 1862 if memory serves.
I hope you are remembering from history class and not from your actually having been there...:-)