Truncate text with slider