Transition will now hide any elements that are not those in the current slide