fix slider rendering