Resize function and display none