Conformation and Dynamics of DNA Confined in Slitlike Nanofluidic Channels