Since you use the same slice 3 times, it'd be easier to follow if you just added `inner = (slice(1, -1), slice(1, -1))` and used those to slice your arrays.