Fixed mobile bugs introduced in gallery