resize working, but flickering