Add toggle slide functionality

I also cleaned up quite a bit of code while I was in there. Let me know if you have any questions!