gallery image cursor fix