Gloucestershire recovered to some extent to reach 165 all out, five wickets for Van Der Gugten and a couple for Douthwaite.