Plugin with sidebar: how to modify small-width, medium-width, large-width?

you do know there are other sidebar plugins out there dont you - for example

Might be worth looking at how they do it - if you want to create your own that is.