By the end of the day , the British troops secured approximately 8 square kilometers of ground , along a front that stretched 24km ( averaging just 0.33km from the initial line of attack ) , at a cost of over 57 thousand casualties , including over 19 thousand fatalities .