layout fix,  resize form only on small devices