Multi-barrier crossing regulated by the friction