Set screen width each time when it is adjusted