resize sample