use toggle instead of z-index