Adds auto hiding/showing functionality for empty/full containers