It's not difficult, it's mathematically impossible.
All dispensers on this and all other levels have specific programming. Here, they release dragons every other move, which means you need 20 moves to obtain 10 dragons.