Position popup according to the position of the array cell