Add support for extracting data from the middle slice.