update position of overlay