Yeah this statement by the OP: "It was a war where one side had slave states and the other side was the confederacy" only gets away with not being an outright lie by stretching the English language into ways that wouldn't be parsed by most people.
There were some slave states that remained in the Union. All Confederacy states were slave states.