apply minimize only to certain layouts