Deformation of a weak subducted slab and variation of seismicity with depth