speed up
getFromTop and getFromLeft merged to getRelativePosition, 2 times less DOM walkthrough