create centering plugin