3d cube after python crop

I’m working in win 10 with slicer, and in wsl.
I’m using nifti files, and try to crop them. I use simple ITK for this purpose.
The crop (somewhat) works, in the 2d views it is great. But in the 3d view the 3d cube works differently as I would expect. I’m unsure if it is the slicer, or the crop itself that causes problems. On R-L axis it is great, but on A-P and on the Z axis it is way off.
I’ve tried the crop with and also without the reset of origin, spacing, and affine matrix.
I’m lost.

edit2: I’m always deleting the cache in 3d slicer.

I would recommend to use the Crop Volume module from your Python script. It can handle any volume, with any geometry, even under a warping transform, and any ROI box, even rotated, and can keep the original resolution or resample to isotropic output spacing. There is nothing particularly difficult in any of these, you just have to have a solid understanding of coordinate systems, transforms, API of resapling filters, and pay close attention when putting everything together.

Thank you very much for the recommendation!
I have been searching for exactly what the 3d cube is, without success. I’m not using the slicer from python (yet), but I’ll try.