Dynamical evolution of a young planetary system: stellar flybys in co-planar orbital configuration