How to adjust length of form