solved jquery slidetoggle issue with if statement