Additional function to get the upper element(relatively to current one) is added. NOTE/difference: it is simpler & smaller BUT only effective if upper element is displayed within current viewport.