created a fading transtions for show/hide gallery