Cities and towns may further regulate and restrict said billboards, signs or other devices within their respective limits by ordinance or by-law, not inconsistent with sections twenty-nine to thirty-three, inclusive, or with said rules and regulations.