Territorial expansion and slavery