fixes thumbnail overflow