slide and shorten on click