Moved the code to convert the slice dictionary to lists of indices to it's own method, get_pos_spec_slices