Deceleration and trapping of polar molecules using time-varying electric fields door