Multibump solutions for a class of Lagrangian systems slowly oscillating at infinity