Fixed up crashes, made length of slider to size of data recieved