use screen width rather than window width