sliding menu: improve max-slide-distance demo