inverted the slide and text functions