I don't use Slackware but looks like you will have to download the package "kernel-headers" from a Slackware mirror and then use nstallpkg or pkgtool to install it.
I've never had to install kernel headers so sorry I'm not sure on that.
Installpkg always worked well for me in the past and PKGTool is helpful and easy to use.