modified quertyFreeTimeslots

-added for loop to remove floating tasks