Make resizing smoother (in theory)