fn make_slider_valid(
    num_dimensions: u32,
    slider: &mut Option<Vec<TensorDimensionIndexSlider>>,
    indices: &[TensorDimensionIndexSelection],
    width: Option<TensorWidthDimension>,
    height: Option<TensorHeightDimension>
)