implement a nice fadeOut animation for minimization