resize editor width on sidebar toggle