Fixed call to slice in views render method