In this task, you need to reverse all words of a given length in the sentence. The number of letters in a word determine its length. For example, the length of the word "apple" is 5.

Example Input: Sentence: 'someone is about to slice through the pizza'. Reverse all words of length '5' in the given sentence.
Example Output: someone is tuoba to ecils through the azzip

Example Input: Sentence: 'a dog curled up sleeping on a bed with pillows'. Reverse all words of length '6' in the given sentence.
Example Output: a dog delruc up sleeping on a bed with pillows

Example Input: Sentence: 'this is an elephant walking in the grass'. Reverse all words of length '8' in the given sentence.
Example Output:
this is an tnahpele walking in the grass