Pyradiomics voxel-based extraction adds empty slices when using rectangular mask

Operating system: Windows 11
Slicer version: 4.11
Expected behavior: I am trying to get the radiomic maps based on the voxel-based extraction provided by pyradiomics. In addition, I am trying to obtain the radiomics map in a rectangular region (in 3 dimensions) defined in my CT. For this, I use the pyradiomics extractor by telling it the original image, the mask (rectangular region) and the voxel-based parameter set to true. My configuration file for the extraction is as follows (leaving by default all acquisition parameters, including discretization and specifying only a resampling to isotropic voxel size [1x1x1]):

image

The expected behavior would be to be able to obtain a radiomap resampled to [1x1x1] spacing and having the same dimensions as the rectangular segmentation mask provided to the extractor.

Actual behavior:
When I try to visualize the volume of the radiomics map obtained in 3D Slicer on the original CT and the defined rectangular segmentation mask, I find that pyradiomics has added empty slices to the volume of the radiomics map at the margins (in red):

Why is this behavior? Does it have to do with the volume resampling? The documentation for the pyradiomics resample_image function details the following information: