Taking a nap in the afternoon may improve short-term memory for adults in their 20s and 30s, a new study finds.