Correctly set current page class in grid view
Set current group/index on the viewer as jQuery data