refresh position only when element is displayed