segment: take offset into account in _to_position()