Code clean up and slider setup