catch error expanding slices to avoid editor freeze