made possible to resize to smaller window