calculates panel width differently