returning offset value in sparse slice procedure