first implementation of slideheight