resize when window size change

resize when window size change