resize images only in mobile mode