fixing ie 8 issue with constrict - slice cannot have undefined passed in as end