correctly shutdown slider