It is possible to create a swap file, instead of partition, which is a better option for you
This is an example direct from a book, use man on the commands to figure how to customize it for your own needs
dd if=/dev/zero of=/swap bs=1024 count=32768
chmod 0600 /swap
mkswap -c /swap 32768
This creates a 32MB swap file.
the dd command creates and fills the swap file with zeros. the numbers bs option is how many bytes a block is, count is the number of blocks
mkswap makes it actually a swap file, the numbers are the size of the file in kilobytes.