Finished slider code and some small changes