Limit returned slice properly