How to minimize a form container size and position it