Added tolerance option to keep_slices.