use toggle and giving 1000ms time to hide and show