Arranging the frames