Some logic to get slims for encode data