Update lib/dimensions.js

Simplify .position when handling relative elements position.