modified hide and show of modal window's css little bit