Custom output crops the input image

I am trying to merge iso slices in a shader to create a fake 3D effect. So my output image will be smaller than my canvas.

When using a Custom output and setting its size, parts of the image I sample in the shaders just disappear. And it happens both in the preview and in the export.

You can see the expected output when I use the default export for the preview: