improved plugin for configurable sizes