Width as a parameter

When using this on a mobile device you may want to use a %-unit for your Sidr. Defining width as an parameter will work smoother on this one. I also discovered that there is some issues when opening a Sidr and then flip the screen from e.g. portrait to landscape, this will fix those issue.