fix slice position bug when changing orientation 2d / 3d