get position infos of an element
prepare for lightbox