Make sure slices from big image are within its shape.