Had they remained in the Union, it was literally impossible to abolish slavery, so your claim doesn't even make sense.
Your reply makes no sense to any statement I made. My point was that, if slavery did not exist, there would have been no war. Therefore, slavery was clearly the cause of the conflict.