from what I know you can't really get rid of cellulite once it's there, if you lose FAT (so you dont necessarily need to be thinner, just more muscular) then there will be less there but repeatedly losing+gaining weight through dieting will increase your fat percentage so don't be tempted to just lose it for the summer
drinking plenty of water and staying hydrated and eating well can lessen the appearance