horizontal/vertical implementation for ranges in __parse_range