Hampshire need 172 more runs with seven wickets in hand