goodbye to ontransitionend in gallery