Return slices from get_attribute_parts.