condition set for automatic resize for iphone/ipod