Gloucestershire left battling for a draw after Billings' barrage