fix slider render from do to return