fixing css issues with resizing