cnext + cprevious fix for one element and rotate