There are different ways to correct the horizon correction, but one common method is to use specialized software to "unwrap" the 360 images and then "re-project" them onto a rectangular grid.
To get all slanted here is a quick tutorial that can fix this issue.