Direct numerical simulation study of the effect of horizontal flow on mixed convection in porous media