add preview in SampleType if small script (<2Mo)