Tamariz gives a great way of memorizing the stack, however I'll touch briefly on 2 methods.
1. A memory palace.
Basically create a palace of 52 rooms in your head. It can be a combination of real places, if you like. The important thing is to make sure you can, in your mind, visit each room. Make it 3 dimensional so it involves your spatial processing. You then in your mind, place a single playing card, and it's stack number in a room, and remember which room it was in. When attempting to recall the name of the card, or what position in the stack it is, go through your memory palace. Since you'll be using your spatial processing as well, recall is much easier.
2. Association.
Associate each playing card and stack number with a very vivid image that will help you recall it. These links are called "Mnemonics" and this is the system that Tamariz discusses. When you attempt to recall the card's position, recall the image associated with it, and recall will be far easier.