Update sidebars.js

I was making some tuning, so that Codiad would fit me and I stumbled across this part. Less work for you guys, I hope.
* Close button now moves with sidebar.
* Clicking sidebar now resizes editor (should it be this way?)
* No width hardcoded to click-expand code.