Recently, LHCb collaboration reported the observation of two hidden-charmed resonances Pc(4380) and Pc(4450) consistent with hidden-charmed pentaquarks. We perform a dynamical investigation about the DˉΣc∗(2520) and Dˉ∗Σc(2455) interactions which are described by the meson exchanges in a quasipotential Bethe-Salpeter equation approach. Two poles around 4450 and 4390 MeV are produced from the Dˉ∗Σc(2455) interaction with spin parities 3/2− and 5/2+, respectively. The peak for 5/2+ state has a comparable hight as that of 3/2− state in the J/ψp invariant mass spectrum. Another bound state with spin-parity JP=3/2− is produced from the DˉΣc∗(2520) interaction. Such results suggest that the narrower LHCb pentaquark Pc(4450) can be well interpreted as a 5/2+Dˉ∗Σc(2455) molecular state while the Pc(4380) is a 3/2−Dˉ∗Σc(2455) molecular state mixed with other secondary origins.