updates image gallery page sorting