Sliding fast–slow dynamics in the slowly forced Duffing system with frequency switching