replace frame-width with window-width