add transitions to display none/block