I would do the following (beware - not tested):
lcd.clear();
lcd.setCursor(15, 0);
lcd.print("x");
for (int i = 0; i < 14;15; i++) {
lcd.setCursor(0, digitalRead(switchPin) == LOW);
lcd.print("5");
delay(500);
lcd.scrollDisplayLeft();
}