gallery image cursor fix

#1108