Just before they reach you and stop up, start swinging that hammer! However, there will always be ONE spider around, so if you've killed them all, another will immediately respawn and start walking down the hallways of the Kytinn area. So be careful.
Tip: You can kinda get out of its pathway and just wait for it to pass by hiding up against some corner walls. Most of the time it won't see you.