Effect of horizontal mantle flow on subduction dynamics: insights from 2D and 3D numerical modeling