fix slidepanel toggle

The slidepanel toggle button doesn't work correctly on my iPhone5 Safari.
This pull request would fix it.