Check file type of slide