Made it so the number of slices is retrieved from the server