fix selectedPost gallery