Middlesex collapse to leave Gloucs target of 234Gloucestershire bowlers, led by Archie Bailey, triggered a dramatic Middlesex collapse, putting them in a strong position for day four.