correctly rehape and resize videos for data layer