No, swapfiles are not created when your Mac is asleep. It simply didn't delete the last swapfile. Also, swapfiles are not used or increased if you're not paging out. Make sure you have enough RAM for your normal workload.Thanks! So I restarted and all the swapfiles, but swapfile0 (67mb), is gone! So swapfiles are created even when my computer was asleep
To determine if you can benefit from more RAM, launch Activity Monitor and click the System Memory tab at the bottom to check your page outs. Page outs are cumulative since your last restart, so the best way to check is to restart your computer and track page outs under your normal workload (the apps, browser pages and documents you normally would have open). If your page outs are significant (say 1GB or more) under normal use, you may benefit from more RAM. If your page outs are zero or very low during normal use, you probably won't see any performance improvement from adding RAM.
Mac OS X: Reading system memory usage in Activity Monitor