no more lag while resizing