Set x, y on window resize