Fix to showmore/showless functionality to work on inactive tabs