Need help with a card game

How to do this?

If you drag a card over another it goes to next frame?