fix horizon pos on resize