Use getBoundingClientRect in method get_element_position