getResultSize
Calculates the number of elements this slice will select.
This method computes the resulting dimension size after applying the slice, which is essential for calculating view shapes.
Return
the number of elements selected by this slice
Parameters
dimensionSize
the original size of the dimension