Fixing CSS resizing issue