Dynamically resize filter box