Quantum dynamics of few dipolar bosons in a double-well potential