Deformation effects on isoscalar giant resonances in Mg-24