add function of adjusting screen width