client side resizing