new implementation of element's box position retrieval