 As that battle on the Somme dragged on , the Canadian Corps was brought up and the AIF was withdrawn from the line to re @-@ organise and reform , having suffered almost 23 @,@ 000 casualties over the course of the 45 days that they had been involved . The 5th Division had been so badly mauled , having been incapacitated by the losses they had suffered at Fromelles , that it was not until October that the 5th Division finally returned to the line and joined the 1st , 2nd and 4th Divisions on the Somme near Flers . 
