[Luis] add extra functionality to getOffset to add the bordersize