paneCalc method

moved pane calculation to a method and triggered it on mutate.  this
fixes issues with percentage positions and changing the browser width