Fix auto width and height of element