This is a Slackware FAQ. I tried installing it myself, but then just went back to spreadsheeting everything ;(
Anyway, this seems to be the 'authoritative' site on installing guncash on Slackware.
http://rjmarq.org/gnucash.html
I'd also google for 'gnucash slackware' to see if there are any easier solutions.
Good luck.