The n_planes value can be infered from the offset and stride slices size, which both need to match. Fixes #224