Complex sentence: The small amount of Ottoman forces in the city fortress managed to defend it against the much larger coalition army of Habsburg, at the same time causing heavy losses for the coalition army.
Split into simpler sentences: The small amount of Ottoman forces in the city fortress managed to defend it against the much larger coalition army of Habsburg. At the same time causing heavy losses for the coalition army.