Use the Slots table instead of row_number() function