Centering and resizing trapdoor items