Add slice setting to getState / setState