minimize the datepicker