postion popover according to item position