adding support for getting an element's size