Gloucestershire given target heading into final day