Remember that shrimp not only cook incredibly quickly, they also keep cooking in their residual heat. You may be tempted to cook them for longer than 2-3 minutes but don't. Remove them from the pan once you hit that mark. Otherwise, you run the risk of drying them out.