Remove hard code from slider creation