I have tried playing through slumps, and I have tried taking a break. I find taking a break is the best way to do it.
Slump or bad luck, call it what you want, but for the most part it's psychological, if you think you are in a slump or having a run of bad luck then that's what will happen, if you believe that taking a break and regrouping will get you through it, thats what you should do.
If you think you are in a slump or getting bad luck, then you will play like it, either by playing hands you normally wouldn't, or folding hands you would normally play fearing the bad beat. Sort of a self fulfilling prophecy. That's why I don't like or believe in playing through a slump, poker is a very psychological game. If your mind isn't in the right place you can't play well.
Just my 2 chips.