Neville almost ran, making sure not to hurt Pansy more. Trying to get there as fast as possible, his steps larger than Hermione's making her stay behind. Thankfully, the halls were mostly empty, so no one saw them and helped him to get there faster.