removed fixed height if no need to resize