home slide autoheight function