dxtory: Factorize slice size checks