get size of the sidebar and set on the reposition