adapt narrow gallery image size