Well I don't use Slackware so I may don't know what exactly happened, but here is how you can set your root password:
1. Boot from a Live CD
2. mount your Linux installation to some directory (say /mnt/temp/ )
3. chroot /mnt/temp /bin/bash
exit and reboot into the linux partition.
Otherwise, if you have 'sudo' access:
1. sudo su