Turns out applying joint limits during slide was bad idea- valid end poses were rejected midway. Now, just check if end pose is valid