Code used to display sliding messages