animated show and hide dialog