How to say they died trying to rescue others. in Esperanto

1)ili pereis provante savi aliulojn.    
Translation by joulinConnect Error: Too many connections