Added function for parentDim values

The problem was that ```parentDim``` was created once during the init phase (when plugin code runs for the first time). Whenever parent changes its size, ```parentDim``` is no longer valid - thus the idea of wrapping it up to a function - now it's calculated everytime it's requested. Didn't notice any performance hit at least for my project.

Didn't create minified files neither.