made horizon follow width of window