Replaced the slice and update method.

Was getting a nil class error on the slice method. Now you just build the hash as you wanted it.