Next and previous in test mode
debug log
fixed conflict in gallery