resized gate flats to fit power of two size