add array_slice() for states
Merge branch 'master' of https://github.com/neeravbm/waivers