adding slicing method to collection handling